﻿using System;

namespace enyo
{
    public class SnapScroller : BasicScroller
    {
        /// <summary>
        /// Sets index to scroll directly (without animation) to the position of the control in scroller's list of controls at the value of index.
        /// </summary>
        public int Index { get; set; }

        /// <summary>
        /// Event that fires when the user finishes dragging and snapping occurs.
        /// </summary>
        public EnyoEvent<Control> onSnap;

        /// <summary>
        /// Event that fires when snapping and scroller animation completes.
        /// </summary>
        public EnyoEvent<Control> onSnapFinish;

        /// <summary>
        /// Scrolls to the control following (right or bottom) the one currently in view.
        /// </summary>
        public void Next()
        {
        }

        /// <summary>
        /// Scrolls to the control preceding (left or top) the one currently in view.
        /// </summary>
        public void Previous()
        {
        }

        /// <summary>
        /// Scrolls to the position of the control contained in the scroller's list of controls at inIndex.
        /// </summary>
        /// <param name="index"></param>
        public void SnapTo(int index)
        {
        }
    }
}
